import Vue from 'vue'
import VueRouter from '../vuerouter'
import Home from '../views/Home.vue'

Vue.use(VueRouter)


  const routes=[
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path:'/about',
      name:'About',
      component:()=>import(/* webpackChunkName:"about" */ '../views/About.vue')
    }
  ]

  const router=new VueRouter({
    mode:'hash',
    // base:ProcessingInstruction.env.BASE_URL,
    routes
  })

  export default router